﻿
namespace System.Custom.Generic
{
    /// <summary>
    /// A generic event arguments class.
    /// </summary>
    /// <typeparam name="T">The type used for the Value property.</typeparam>
    public class EventArgs<T> : EventArgs, IEventArgs<T>
    {
        #region Constructors

        /// <summary>
        /// Creates a new instance of the generic EventArgs class.
        /// </summary>
        /// <param name="value">The value for the Value property.</param>
        public EventArgs(T value)
        {
            Value = value;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets the Value.
        /// </summary>
        public T Value { get; private set; }

        #endregion
    }
}
